home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: Largest effective integer.
- Date: 15 Apr 1996 01:11:46 +1200
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4kqtii$3r2@airdmhor.gen.nz>
- References: <4ke5gu$o7u@airdmhor.gen.nz> <smryanDpnDDn.418@netcom.com>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- @#$%!?!:
- > Measly little 32 bit integers and reals. I grew up on 60 and 48 bit integers,
- > 120 bit doubles. And 65535 bit integers.
-
- > In other words, this all machine specfic. Look in <limits.h> if your
- > compiler has one.
-
- Yes, but char short int and long have minimums defined for them, I was
- hoping that there is a minimum for the mantissa of a float or double.
-
- Is long double an ANSI type, by the way? I didn't think it was, but
- Watcom supports it even though it's the same size as a double.
-
-
-
- > With proper abuse of cpp and opaque types, you can make your own abstract
- > integer type which should be fairly portable.
- > If you really don't care how slow, you can implement it as array
- > of bytes and do the arithmetic one byte at a time, propogating carries,
- > etc.
-
- I should have mentioned that I wanted it to be small in souce code while
- still being portable.
-